Skip to content

chore: migrate postprocessing docs to Nuxt + Nuxt UI - #1406

Merged
alvarosabu merged 32 commits into
mainfrom
chore/tres-272-migrate-postprocessing-docs-to-nuxt-nuxt-ui
Jun 1, 2026
Merged

chore: migrate postprocessing docs to Nuxt + Nuxt UI#1406
alvarosabu merged 32 commits into
mainfrom
chore/tres-272-migrate-postprocessing-docs-to-nuxt-nuxt-ui

Conversation

@alvarosabu

Copy link
Copy Markdown
Member

Summary

Migrate apps/postprocessing-docs-vitepress to a new Nuxt v4 + Nuxt UI v4 docs app at apps/postprocessing-docs, mirroring the cientos-docs architecture with a dedicated pink/magenta theme sourced from the playground's tres-postprocessing color (#FF7BAC).

Closes TRES-272

What's in

  • New app scaffold duplicated from apps/docs-boilerplate and rebranded (@tresjs/post-processing workspace dep, pink primary palette anchored at -300, postprocessing GitHub/footer/TOC links, LLM sections for Getting Started / API / Advanced)
  • 34 demo components ported from VitePress → Nuxt with the cientos MDC pattern:
    • 29 pmndrs effects under app/components/pmndrs/ (Ascii, Bloom, Chromatic Aberration, Depth of Field, God Rays, Glitch, Kuwahara, Outline, Pixelation, Vignette, Shock Wave, etc.)
    • 5 three native effect demos under app/components/three/ (Glitch, Halftone, Pixelation, Smaa, UnrealBloom)
    • Shared DocsDemo.vue wrapper (ClientOnly + Suspense + optional Leches panel via `controls` prop)
  • 38 markdown pages with Nuxt Content MDC syntax:
    • Landing hero + getting-started (introduction + installation) + API overview + advanced guide
    • 29 pmndrs effect pages + 6 three native effect pages + `output.md` (doc-only)
  • Canonical Leches binding fix: destructured `useControls` refs bound per-prop instead of broken `v-bind="reactiveObject"` pattern (caught in code review before replicating 27×)
  • Deploy config (`netlify.toml`)

What's out of scope (follow-up)

  • Deleting `apps/postprocessing-docs-vitepress` (after production flip)
  • Updating links in `apps/docs` to point at the new site (after DNS flip)
  • Pink `-400` → `-900` visual QA (shades are educated-guesses anchored at `#FF7BAC = -300`; tune via uicolors.app if needed)
  • Some source features dropped due to missing deps: gsap animations on FishEye/ColorAverage/ColorDepth/ShockWave replaced with `useLoop`/static; FXAA split-screen simplified to single canvas

Test plan

  • `pnpm --filter postprocessing-docs lint` — clean ✅
  • `pnpm --filter postprocessing-docs typecheck` — only pre-existing `ProseA.vue:29` boilerplate error ✅
  • `pnpm --filter postprocessing-docs build` — all 37 pages prerender, `llms.txt` + `llms-full.txt` generate ✅
  • `pnpm --filter postprocessing-docs dev` — landing renders with pink hero, sidebar lists all effects, each demo page renders 3D scene + Leches controls (where applicable)
  • Navigate `/api/pmndrs/bloom` — hotpink emissive sphere renders with visible bloom glow + 4 sliders that actually affect the scene (intensity, radius, luminanceThreshold, luminanceSmoothing)
  • Navigate `/api/three/unreal-bloom` — demo renders with Leches panel
  • Navigate `/advanced/you-might-not-need-post-processing` — renders
  • Dark-mode toggle works across pages

alvarosabu and others added 20 commits April 22, 2026 10:05
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Migrates final 7 effects: Sepia, ShockWave, SMAA, Texture, TiltShift, ToneMapping, Vignette.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify

netlify Bot commented Apr 22, 2026

Copy link
Copy Markdown

Deploy Preview for cientos-tresjs ready!

Name Link
🔨 Latest commit f095694
🔍 Latest deploy log https://app.netlify.com/projects/cientos-tresjs/deploys/6a1d2e8309beab0008606da1
😎 Deploy Preview https://deploy-preview-1406--cientos-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Apr 22, 2026

Copy link
Copy Markdown

Deploy Preview for tresjs-docs ready!

Name Link
🔨 Latest commit f095694
🔍 Latest deploy log https://app.netlify.com/projects/tresjs-docs/deploys/6a1d2e830cc9460008efe525
😎 Deploy Preview https://deploy-preview-1406--tresjs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Apr 22, 2026

Copy link
Copy Markdown

Deploy Preview for tresjs-lab ready!

Name Link
🔨 Latest commit f095694
🔍 Latest deploy log https://app.netlify.com/projects/tresjs-lab/deploys/6a1d2e832fbc61000851a5bc
😎 Deploy Preview https://deploy-preview-1406--tresjs-lab.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented Apr 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

@tresjs/cientos

npm i https://pkg.pr.new/@tresjs/cientos@1406

@tresjs/core

npm i https://pkg.pr.new/@tresjs/core@1406

@tresjs/eslint-config

npm i https://pkg.pr.new/@tresjs/eslint-config@1406

@tresjs/leches

npm i https://pkg.pr.new/@tresjs/leches@1406

@tresjs/nuxt

npm i https://pkg.pr.new/@tresjs/nuxt@1406

@tresjs/post-processing

npm i https://pkg.pr.new/@tresjs/post-processing@1406

commit: c542f5f

@alvarosabu
alvarosabu requested a review from Tinoooo May 19, 2026 09:42
Comment thread apps/postprocessing-docs/app/app.vue
Comment thread apps/postprocessing-docs/app/app.vue

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: Navigating away from this page makes the browser tab freeze. Also happens on other pages though.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: typecheck fails.

…ser components memory leaks fix, typescript and hydration issues
@netlify

netlify Bot commented May 25, 2026

Copy link
Copy Markdown

Deploy Preview for postprocessing-tresjs ready!

Name Link
🔨 Latest commit f095694
🔍 Latest deploy log https://app.netlify.com/projects/postprocessing-tresjs/deploys/6a1d2e830244730007c83afd
😎 Deploy Preview https://deploy-preview-1406--postprocessing-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@alvarosabu
alvarosabu requested a review from Tinoooo May 25, 2026 12:51
@alvarosabu

Copy link
Copy Markdown
Member Author

Hey @Tinoooo I commit some changes, I think they tackle all your points

@Tinoooo Tinoooo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two very small things left. Rest is fine. Thank you for the migration!

Comment thread apps/postprocessing-docs/app/composables/useNavigation.ts
Comment thread apps/postprocessing-docs/app/app.config.ts Outdated
Comment thread apps/postprocessing-docs/app/app.vue
Comment thread apps/postprocessing-docs/app/app.vue
Co-authored-by: Tino Koch <17991193+Tinoooo@users.noreply.github.com>
@alvarosabu
alvarosabu requested a review from Tinoooo June 1, 2026 07:02
@alvarosabu
alvarosabu merged commit 1f66c23 into main Jun 1, 2026
7 of 8 checks passed
@alvarosabu
alvarosabu deleted the chore/tres-272-migrate-postprocessing-docs-to-nuxt-nuxt-ui branch June 1, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants